package com.smcaiot.jfttask.domain;

import com.smcaiot.core.domain.AbstractIdentity;

import java.util.UUID;

/**
 * @Author: cz
 * @Date: 2023/9/26
 * @Description:
 */
public class TaskId extends AbstractIdentity<String> {
    public TaskId(String value) {
        super(value);
    }

    public static TaskId from(String value) {
        return new TaskId(value);
    }

    public static TaskId next() {
        return new TaskId(UUID.randomUUID().toString());
    }
}
